package ${packageName}.controller;

import ${packageName}.po.${dbDto.className}Po;
import ${packageName}.service.${dbDto.className}Service;
import com.devilvan.betrice.common.BetriceResultVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author ${author}
 * @Description ${dbDto.comment} 控制器
 * @date ${date}
 */
@RestController
@RequestMapping(value = "${dbDto.className?uncap_first}Controller")
@Tag(name = "${dbDto.comment} 控制器")
public class ${dbDto.className}Controller {
    @Resource(name = "${dbDto.className?uncap_first}ServiceImpl")
    private ${dbDto.className}Service ${dbDto.className?uncap_first}Service;

    /**
     * 总请求控制器
     *
     * @return 形式返回
     */
    @Operation(summary = "总请求控制器")
    @RequestMapping(value = "do${dbDto.className}")
    public BetriceResultVo<${dbDto.className}Po> do${dbDto.className}() {
        BetriceResultVo<${dbDto.className}Po> betriceResultVo = new BetriceResultVo<>();
        return betriceResultVo;
    }

    /**
     * 采集报文控制器
     *
     * @return 形式返回
     */
    @Operation(summary = "采集报文控制器")
    @RequestMapping(value = "do${dbDto.className}Crawler")
    public BetriceResultVo<${dbDto.className}Po> do${dbDto.className}Crawler() {
        BetriceResultVo<${dbDto.className}Po> betriceResultVo = new BetriceResultVo<>();
        return betriceResultVo;
    }

    /**
     * 解析报文控制器
     *
     * @param request 报文
     * @return 形式返回
     */
    @Operation(summary = "解析报文控制器")
    @RequestMapping(value = "do${dbDto.className}Request")
    public BetriceResultVo<${dbDto.className}Po> do${dbDto.className}Request(@RequestBody String request) {
        BetriceResultVo<${dbDto.className}Po> betriceResultVo = new BetriceResultVo<>();
        return betriceResultVo;
    }
}
